﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>三色卡教学视频库 | B站资源</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            color: white;
            min-height: 100vh;
            padding: 20px;
        }
        
        .container {
            max-width: 1000px;
            margin: 0 auto;
            padding: 20px;
        }
        
        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 25px;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }
        
        h1 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        
        .logo {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }
        
        .logo-icon {
            font-size: 2.5rem;
            color: #ff6b6b;
        }
        
        .subtitle {
            font-size: 1.1rem;
            opacity: 0.9;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .instructions {
            background: rgba(255, 255, 255, 0.1);
            padding: 15px;
            border-radius: 10px;
            margin: 25px 0;
            border-left: 4px solid #4d96ff;
        }
        
        .video-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }
        
        .video-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            height: 100%;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }
        
        .video-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 0.15);
        }
        
        .video-thumb {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
            border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        }
        
        .video-info {
            padding: 20px;
        }
        
        .video-title {
            font-size: 1.3rem;
            margin-bottom: 12px;
            font-weight: bold;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .title-icon {
            font-size: 1.2rem;
        }
        
        .video-desc {
            font-size: 0.95rem;
            opacity: 0.85;
            line-height: 1.5;
            margin-bottom: 15px;
        }
        
        .bilibili-badge {
            display: inline-block;
            background: #00a1d6;
            color: white;
            padding: 3px 8px;
            border-radius: 4px;
            font-size: 0.8rem;
        }
        
        .card-red .title-icon {
            color: #ff6b6b;
        }
        
        .card-yellow .title-icon {
            color: #ffd93d;
        }
        
        .card-blue .title-icon {
            color: #4d96ff;
        }
        
        .card-purple .title-icon {
            color: #9b59b6;
        }
        
        .footer {
            text-align: center;
            margin-top: 40px;
            padding: 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .video-grid {
                grid-template-columns: 1fr;
            }
            
            h1 {
                font-size: 1.8rem;
            }
            
            .logo {
                flex-direction: column;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <header>
            <div class="logo">
                <i class="fas fa-video logo-icon"></i>
                <div>
                    <h1>三色卡教学视频库</h1>
                    <p class="subtitle">扫码访问所有B站教学资源 | 点击卡片即可播放</p>
                </div>
            </div>
        </header>
        
        <div class="instructions">
            <p><i class="fas fa-info-circle"></i> 温馨提示：在微信内打开时，请点击右上角菜单选择"在浏览器中打开"以获得最佳播放体验</p>
        </div>
        
        <div class="video-grid" id="video-grid">
            <!-- 视频卡片由JavaScript动态生成 -->
        </div>
        
        <div class="footer">
            <p>技术支持：教融星 · 三色卡教学系统</p>
            <p>视频资源来源：哔哩哔哩 (bilibili.com)</p>
        </div>
    </div>

    <script>
        // B站视频数据配置（已集成您提供的4个链接）
        const videos = [
            {
                id: "video1",
                title: "紧急情况处理指南",
                description: "学生自伤、攻击行为等紧急情况的标准化处理流程，包含安全隔离、专业机构联系和事后记录方法",
                thumb: "https://img-blog.csdnimg.cn/direct/3b1e6d1a4f744c8b8c5d9f8c0c5d1e6d.png",
                url: "https://b23.tv/0HUg7Te",
                colorClass: "card-red",
                icon: "fas fa-exclamation-triangle"
            },
            {
                id: "video2",
                title: "问题识别方法详解",
                description: "如何区分读写障碍和普通学习困难，包含特征对照表、筛查工具使用和转介流程",
                thumb: "https://img-blog.csdnimg.cn/direct/7c4e5b1d4a4d4e0a9f5d5e3a3f5e5b5d.png",
                url: "https://b23.tv/pDxGh2E",
                colorClass: "card-yellow",
                icon: "fas fa-search"
            },
            {
                id: "video3",
                title: "课堂管理实用技巧",
                description: "座位安排策略、有效提问话术、注意力分散应对方法等日常课堂管理实用技巧",
                thumb: "https://img-blog.csdnimg.cn/direct/1a5b5b5e5e5e5e5e5e5e5e5e5e5e5e5e.png",
                url: "https://b23.tv/Dm0NDbx",
                colorClass: "card-blue",
                icon: "fas fa-chalkboard-teacher"
            },
            {
                id: "video4",
                title: "三色卡系统使用教程",
                description: "完整的三色卡系统使用指南，包含卡片应用场景、操作流程和常见问题解决方案",
                thumb: "https://img-blog.csdnimg.cn/direct/5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e5e.png",
                url: "https://b23.tv/VVBA2oI",
                colorClass: "card-purple",
                icon: "fas fa-book"
            }
        ];

        // 渲染视频网格
        const videoGrid = document.getElementById('video-grid');
        
        videos.forEach(video => {
            const card = document.createElement('div');
            card.className = `video-card ${video.colorClass}`;
            
            card.innerHTML = `
                <img src="${video.thumb}" alt="${video.title}" class="video-thumb">
                <div class="video-info">
                    <div class="video-title">
                        <i class="${video.icon} title-icon"></i>
                        ${video.title}
                    </div>
                    <p class="video-desc">${video.description}</p>
                    <span class="bilibili-badge">B站视频</span>
                </div>
            `;
            
            card.addEventListener('click', () => {
                // 打开B站视频页面
                window.location.href = video.url;
            });
            
            videoGrid.appendChild(card);
        });

        // 微信环境提示
        if (/MicroMessenger/i.test(navigator.userAgent)) {
            const wechatTip = document.createElement('div');
            wechatTip.innerHTML = `
                <div style="position:fixed; top:0; left:0; right:0; background:gold; padding:12px; text-align:center; z-index:10000; color: #333; font-weight: bold;">
                    <i class="fas fa-exclamation-circle"></i> 微信用户请点击右上角菜单 → 选择"在浏览器中打开"
                </div>
            `;
            document.body.insertAdjacentHTML('afterbegin', wechatTip.outerHTML);
        }
    </script>
</body>
</html>